package com.qimo.dao;

import com.qimo.model.HistoryOrder;
import com.qimo.model.Item;
import com.qimo.model.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderDao {
   int createOrder(Order order);
   List<Order> selectOrderList(@Param("userId")Integer userId,@Param("orderId")Integer orderId,@Param("Page")int Page);
   int selectOrderListCount(@Param("userId")int userId);
   int delOrder(@Param("orderId")int orderId,@Param("userId")int userId);
   int createHistoryOrder(Order order);
   List<HistoryOrder> selectHistoryOrderList(@Param("userId")Integer userId,@Param("Page")int Page);
   int selectHistoryOrderListCount(@Param("userId")int userId);
   int delHistoryOrder(@Param("historyOrderId")int historyOrderId,@Param("userId")int userId);
}

